package com.softtown.modules.dapai.dao;

import com.softtown.common.dao.BaseDao;
import com.softtown.modules.dapai.dto.CompAfterSaleAPPDTO;
import com.softtown.modules.dapai.dto.CompAfterSaleDTO;
import com.softtown.modules.dapai.entity.CompAfterSaleDetailEntity;
import com.softtown.modules.dapai.entity.CompAfterSaleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface CompAfterSaleDao extends BaseDao<CompAfterSaleEntity> {

    List<CompAfterSaleDTO> getAfterSalePageList(@Param("compId")Long compId,@Param("pram") String pram );

    CompAfterSaleEntity getAfterSaleById(@Param("compId")Long compId, @Param("id")Long id);

    List<CompAfterSaleAPPDTO> getAfterSalePageListAPP(@Param("compId")Long compId, @Param("pram") String pram );

    CompAfterSaleAPPDTO getAfterSaleByIdAPP(@Param("compId")Long compId, @Param("id")Long id);

    List<CompAfterSaleDetailEntity> getAfterSaleDetailList(@Param("compId")Long compId, @Param("id")Long id);

    void deleteAfterSale(@Param("compId")Long compId, @Param("id")Long id);

    void deleteDetail(@Param("compId")Long compId, @Param("id")Long id);

}
